<?php
class auth extends CI_Model{
	
	public function __construct(){
		parent::__construct();
	}
	
	public function get_User($userID){
		$db_test_1Deutsch = $this->load->database('test_1Deutsch', TRUE);
		$db_test_1Deutsch->where('ID', $userID);
		$query=$db_test_1Deutsch->get('_test_users');
		return $query->result_array();
	}
	
	public function get_Name_User($userID){
		$db_test_1Deutsch = $this->load->database('test_1Deutsch', TRUE);
		$db_test_1Deutsch->select('display_name');
		$db_test_1Deutsch->where('ID', 1);
		$query=$db_test_1Deutsch->get('_test_users');
		$result = $query->result_array();
		return $result;
	}
	
	public function check_login($userID){
		$db_test_1Deutsch = $this->load->database('test_1Deutsch', TRUE);
		$db_test_1Deutsch->where('ID', $userID);
		$query = $db_test_1Deutsch->get('_test_users');
		if(count($query->result_array())==1){
			return true;
		}else{
			return false;
		}
	}
}




?>